﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <Style x:Key="ControlWindowChangePassword" TargetType="{x:Type Controls:SinacorWindowChangePassword}">
        <Setter Property="Width" Value="413"/>
        <Setter Property="Height" Value="225"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="WindowState" Value="Normal"/>
        <Setter Property="ResizeMode" Value="NoResize"/>
        <Setter Property="AllowsTransparency" Value="True"/>
        <Setter Property="WindowStyle" Value="None"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="Title" Value="{DynamicResource Infra.Controls.Label.ChangePassword}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:SinacorWindowChangePassword}">

                    <Controls:SinacorExpanderContainer x:Name="expHeader">
                        <Controls:SinacorExpanderContainer.RowDefinitions>
                            <RowDefinition Height="*" />
                        </Controls:SinacorExpanderContainer.RowDefinitions>

                        <Controls:SinacorExpander Grid.Row="0" 
                            Header="{DynamicResource Infra.Controls.Label.ChangePassword}" 
                            IsExpanded="True" 
                            Width="Auto" 
                            HorizontalAlignment="Stretch" 
                            VerticalAlignment="Stretch" 
                            IsEnabled="True" 
                            AllowExpand="False" 
                            IsPinned="False"
                            Background="White">
                            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                                <Controls:SinacorGroupBox Height="Auto"
                                    Width="Auto" 
                                    Margin="0,0,0,0" 
                                    HorizontalAlignment="Stretch" 
                                    VerticalAlignment="Stretch" 
                                    Header="{DynamicResource Infra.Controls.Label.InfDadosAbaixo}">
                                    <Grid
                                        Width="Auto"
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Stretch" 
                                        Height="149">
                                        
                                        <Controls:SinacorLabel HorizontalAlignment="Left" 
                                            Content="{DynamicResource Infra.Controls.Label.Usuario}" 
                                            Width="140" 
                                            Margin="0,8,0,0"/>
                                        <Controls:SinacorTextBox x:Name="lblLogin"
                                            HorizontalAlignment="Left" 
                                            VerticalAlignment="Top" 
                                            Text="{TemplateBinding Login}" 
                                            Margin="144,8,0,0" 
                                            Width="165" 
                                            TabIndex="1" 
                                            IsEnabled="False"/>
                                        
                                        <Controls:SinacorLabel HorizontalAlignment="Left" 
                                            Content="{DynamicResource Infra.Controls.Label.CurrentPassword}" 
                                            Width="140" 
                                            Margin="0,33,0,0"/>
                                        <PasswordBox x:Name="txtPassword" 
                                            VerticalAlignment="Top" 
                                            Margin="144,33,0,0" 
                                            Width="165" 
                                            HorizontalAlignment="Left" 
                                            TabIndex="2"/>
                                        
                                        <Controls:SinacorLabel HorizontalAlignment="Left" 
                                            Content="{DynamicResource Infra.Controls.Label.NewPassword}" 
                                            Width="140" 
                                            Margin="0,58,0,0" 
                                            VerticalAlignment="Top" />
                                        <PasswordBox x:Name="txtNewPassword"
                                            Margin="144,58,0,0" 
                                            Width="165" 
                                            HorizontalAlignment="Left" 
                                            VerticalAlignment="Top" 
                                            TabIndex="3"/>
                                        
                                        <Controls:SinacorLabel HorizontalAlignment="Left" 
                                            Content="{DynamicResource Infra.Controls.Label.ConfirmNewPassword}" 
                                            Width="140" 
                                            Margin="0,83,0,0" 
                                            VerticalAlignment="Top" />
                                        <PasswordBox x:Name="txtConfirmNewPassword"
                                            Margin="144,83,0,0" 
                                            Width="165" 
                                            HorizontalAlignment="Left" 
                                            VerticalAlignment="Top" 
                                            TabIndex="4"/>
                                        
                                        <Controls:SinacorButton x:Name="btnOk"
                                            VerticalAlignment="Top"
                                            Content="{DynamicResource Infra.Controls.Label.OK}"
                                            Margin="144,114,0,0"
                                            Width="60"
                                            IsDefault="True" 
                                            TabIndex="5" 
                                            HorizontalAlignment="Left"/>
                                        <Controls:SinacorButton x:Name="btnCancel"
                                            VerticalAlignment="Top"
                                            Content="{DynamicResource Infra.Controls.Label.Cancelar}"
                                            Margin="208,114,0,0"
                                            Width="101"
                                            IsDefault="False" 
                                            TabIndex="6" 
                                            HorizontalAlignment="Left"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                            </Grid>
                        </Controls:SinacorExpander>
                        <Controls:SinacorButton x:Name="btnClose" Content="SinacorButton" Style="{DynamicResource ControlButtonClose}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,3.5,9,0"/>

                    </Controls:SinacorExpanderContainer>


                    <!--<Grid x:Name="GridDragMove" Background="White">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        
                        <Controls:SinacorLabel Content="{DynamicResource Infra.Controls.Label.Login}" Grid.Column="0" Grid.Row="0" Width="Auto" />
                        <Controls:SinacorLabel x:Name="lblLogin" Content="{TemplateBinding Login}" Grid.Column="1" Grid.Row="0" Width="Auto" />
                        
                        <Controls:SinacorLabel Content="{DynamicResource Infra.Controls.Label.CurrentPassword}" Grid.Column="0" Grid.Row="1" Width="Auto" />
                        <PasswordBox x:Name="txtPassword" Grid.Column="1" Grid.Row="1" />
                        
                        <Controls:SinacorLabel Content="{DynamicResource Infra.Controls.Label.NewPassword}" Grid.Column="0" Grid.Row="2" Width="Auto" />
                        <PasswordBox x:Name="txtNewPassword" Grid.Column="1" Grid.Row="2" />
                            
                        <Controls:SinacorLabel Content="{DynamicResource Infra.Controls.Label.ConfirmNewPassword}" Grid.Column="0" Grid.Row="3" Width="Auto" />
                        <PasswordBox x:Name="txtConfirmNewPassword" Grid.Column="1" Grid.Row="3" />
                            
                        <Controls:SinacorButton x:Name="btnOk" Content="{DynamicResource Infra.Controls.Label.OK}" Grid.Column="0" Grid.Row="4" IsDefault="True" />
                        <Controls:SinacorButton x:Name="btnCancel" Content="{DynamicResource Infra.Controls.Label.Cancelar}" Grid.Column="1" Grid.Row="4" IsCancel="True" />

                    </Grid>-->

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>